From: Jyrki Gadinger Date: Tue, 4 Mar 2025 10:07:53 +0000 (+0100) Subject: Revert "gui: do not allow MainWindow to be resized" X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~7^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6449eda361692ce3cefa3fce5d9737266a9e6361;p=nextcloud-desktop.git Revert "gui: do not allow MainWindow to be resized" This reverts commit 0963856a941e85881cc82b254585fc76bf5b3aa0. turns out it's fine on Sonoma, whereas it breaks on Sequoia (the window now gets stuck below the menubar) -- maybe I'll open up a QTBUG later if I can reproduce this with a minimal example Signed-off-by: Jyrki Gadinger --- diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index a30f4fc93..cf13b90be 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -43,16 +43,7 @@ ApplicationWindow { readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth - Component.onCompleted: { - Systray.forceWindowInit(trayWindow) - if (Systray.useNormalWindow) { - return; - } - - // do not allow this window to be resized when it's frameless - this.minimumWidth = this.maximumWidth = this.width - this.minimumHeight = this.maximumHeight = this.height - } + Component.onCompleted: Systray.forceWindowInit(trayWindow) // Close tray window when focus is lost (e.g. click somewhere else on the screen) onActiveChanged: {